Socket
Socket
Sign inDemoInstall

component-query

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-query

Query the DOM with selector engine fallback support


Version published
Weekly downloads
46K
decreased by-17.14%
Maintainers
1
Weekly downloads
 
Created
Source

query

Query the DOM with selector engine fallback support. This abstraction allows all other components that require dom querying to indirectly support old browsers, without explicitly adding support for them.

Installation

$ component install component/query

API

query(selector, [el])

Query selector against the document or el and return a single match.

query('ul > li');
query('ul > li', articles);

query.all(selector, [el])

Query selector against the document or el and return all matches.

query.all('ul > li');
query.all('ul > li', articles);

Fallback engines

Currently supported:

  • query-zest
  • query-qwery

License

MIT

Keywords

FAQs

Package last updated on 10 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc